package pack0713;

public class Test2 {
    public static void main(String[] args) {

//        new MyThread().start();
//        new MyThread().start();
//        new MyThread().start();

        Thread t1=new MyThread();
        t1.setName("线程1");
        t1.setPriority(5);   //优先级

        Thread t2=new MyThread();
        t2.setName("线程2");
        t2.setPriority(1);

        t1.start();    //处于就绪状态
        t2.start();    //处于就绪状态

    }
}

